#pragma once

#include "common.h"

#include "v4l2.h"

class Tcp_server
{
public:
    Tcp_server();
    ~Tcp_server();
    void Init(const char* argv[]);
    int accept_wait_client();
    void send_rgb_data(VideoDevice *ptVideoDevice);
    
    int sockfd;
    int acceptfd;
    struct sockaddr_in clientaddr;
    socklen_t addrlen;
};  
